package com.chang.spring6.iocXML.auto.service;

import com.chang.spring6.iocXML.auto.dao.UserDao;
import com.chang.spring6.iocXML.auto.dao.UserDaoImpl;

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUserService() {
        System.out.println("UserServiceImpl:::::::UserDao方法执行成功>>>>>>>");
        UserDao dao = new UserDaoImpl();
        dao.addUser();
    }
}
